

import java.sql.*;
import java.util.*;

class JdbcDemo8 {
	public static void main(String args[]) throws Exception
	{
		Class.forName("oracle.jdbc.driver.OracleDriver");
		Connection cn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system", "oracle");
		Statement st = cn.createStatement();
		int count = st.executeUpdate("insert into mem_reg values('mithilesh','mk','mk123')");
		System.out.println(count);
		st.close();
		cn.close();
		st = null;
		cn = null;
	}
	

}
